package cn.datawin.cmppclient.init;

import cn.datawin.cmppclient.sender.env.NetwayEnv;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Slf4j
@Component
@RequiredArgsConstructor
public class ServerInit implements CommandLineRunner {

	private final NetwayEnv netwayEnv;

	@Override
	public void run(String... args) throws Exception {
		netwayEnv.start();
	}
}
